package de.sup.scs.prototyp.client.ui.footer;

import com.google.gwt.event.shared.EventBus;
import com.google.inject.Inject;
import com.gwtplatform.mvp.client.Presenter;
import com.gwtplatform.mvp.client.View;
import com.gwtplatform.mvp.client.annotations.NameToken;
import com.gwtplatform.mvp.client.annotations.ProxyCodeSplit;
import com.gwtplatform.mvp.client.proxy.PlaceManager;
import com.gwtplatform.mvp.client.proxy.ProxyPlace;
import com.gwtplatform.mvp.client.proxy.RevealContentEvent;
import de.sup.scs.prototyp.client.ui.main.MainPagePresenter;

public class FooterPresenter extends Presenter<FooterPresenter.MyView, FooterPresenter.MyProxy> {

    private final PlaceManager placeManager;

    public interface MyView extends View {}

    @ProxyCodeSplit
    @NameToken("footer")
    public interface MyProxy extends ProxyPlace<FooterPresenter> {}

    @Inject
    public FooterPresenter(EventBus eventBus, MyView view, MyProxy proxy, PlaceManager placeManager) {
        super(eventBus, view, proxy);
        this.placeManager = placeManager;
    }

    @Override
    protected void revealInParent() {
        RevealContentEvent.fire(this, MainPagePresenter.FOOTER, this);
    }

}
